﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace DiscoveryLogic.Analytics.DataObjects
{
    /// <summary>
    /// 
    /// </summary>
    public class XmlDataManager
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="extension"></param>
        /// <returns></returns>
        public static string GetFilePath(string name, string extension)
        {
            string appFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
            appFolder = Path.Combine(appFolder, "Network Data");
            if (!Directory.Exists(appFolder))
                Directory.CreateDirectory(appFolder);
            string fileName = name + extension;
            string filePath = Path.Combine(appFolder, fileName);
            return filePath;
        }
    }
}
